package com.founding.controller;

import com.founding.dao.UserDao;
import com.founding.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class ProviderCon {
    @Autowired
    private UserDao userDao;

    @GetMapping("/findOne/{id}")
    public User findOne(@PathVariable("id") int id){
        return userDao.findOne(id);
    }
}
